class Employee:
    def __init__(self, name, salary, job_title):
        self.name = name.strip().title()
        self.salary = salary
        self.job_title = job_title.strip().title()

    def __str__(self):
        return f"{self.name} earns {self.salary} per year as a {self.job_title}"

'''
employee = Employee("zhangsan", "20w", "software engineer")
print(employee)
'''

class Company:
    def __init__(self, name, address):
        self.name = name.strip().title()
        self.employees = []

    def hire_employee(self, name, salary, job_title):
        new_employee = Employee(name, salary, job_title)
        self.employees.append(new_employee)

    def display_employee(self):
        if not self.employees:
            return "No employees to display."

        employee_details = [str(i) for i in self.employees]
        return "\n".join(employee_details)

company = Company("aabbcc store","er xian qiao")
company.hire_employee("  zhangsan  ", 50000, "software engineer")
company.hire_employee("  lisi  ", 100000, "seller")
print(company.display_employee())
